![]() |
Sensor Fusion for Kinetis MCUs (ISSDK/KSDK version)
|
Include dependency graph for fusion.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | FLPFSECS_1DOF_P_BASIC 1.5F |
| #define | FLPFSECS_3DOF_G_BASIC 1.0F |
| #define | FLPFSECS_3DOF_B_BASIC 7.0F |
| #define | FMAX_6DOF_GY_BPL 7.0F |
| #define | FMAX_9DOF_GBY_BPL 7.0F |
COMPUTE_6DOF_GB_BASIC constants | |
| #define | FLPFSECS_6DOF_GB_BASIC 7.0F |
COMPUTE_6DOF_GY_KALMAN constants | |
| #define | FQVY_6DOF_GY_KALMAN 2E2 |
| #define | FQVG_6DOF_GY_KALMAN 1.2E-3 |
| #define | FQWB_6DOF_GY_KALMAN 2E-2F |
| #define | FMIN_6DOF_GY_BPL -7.0F |
COMPUTE_9DOF_GBY_KALMAN constants | |
gyro sensor noise covariance units deg^2 increasing this parameter improves convergence to the geomagnetic field | |
| #define | FQVY_9DOF_GBY_KALMAN 2E2 |
| #define | FQVG_9DOF_GBY_KALMAN 1.2E-3 |
| #define | FQVB_9DOF_GBY_KALMAN 5E0 |
| #define | FQWB_9DOF_GBY_KALMAN 2E-2F |
| #define | FMIN_9DOF_GBY_BPL -7.0F |
Functions | |
Fusion Function Prototypes | |
These functions comprise the core of the basic sensor fusion functions excluding magnetic and acceleration calibration. Parameter descriptions are not included here, as details are provided in sensor_fusion.h. | |
| void | fInitializeFusion (SensorFusionGlobals *sfg) |
| void | fFuseSensors (struct SV_1DOF_P_BASIC *pthisSV_1DOF_P_BASIC, struct SV_3DOF_G_BASIC *pthisSV_3DOF_G_BASIC, struct SV_3DOF_B_BASIC *pthisSV_3DOF_B_BASIC, struct SV_3DOF_Y_BASIC *pthisSV_3DOF_Y_BASIC, struct SV_6DOF_GB_BASIC *pthisSV_6DOF_GB_BASIC, struct SV_6DOF_GY_KALMAN *pthisSV_6DOF_GY_KALMAN, struct SV_9DOF_GBY_KALMAN *pthisSV_9DOF_GBY_KALMAN, struct AccelSensor *pthisAccel, struct MagSensor *pthisMag, struct GyroSensor *pthisGyro, struct PressureSensor *pthisPressure, struct MagCalibration *pthisMagCal) |
| void | fInit_1DOF_P_BASIC (struct SV_1DOF_P_BASIC *pthisSV, struct PressureSensor *pthisPressure, float flpftimesecs) |
| void | fInit_3DOF_G_BASIC (struct SV_3DOF_G_BASIC *pthisSV, struct AccelSensor *pthisAccel, float flpftimesecs) |
| void | fInit_3DOF_B_BASIC (struct SV_3DOF_B_BASIC *pthisSV, struct MagSensor *pthisMag, float flpftimesecs) |
| void | fInit_3DOF_Y_BASIC (struct SV_3DOF_Y_BASIC *pthisSV) |
| void | fInit_6DOF_GB_BASIC (struct SV_6DOF_GB_BASIC *pthisSV, struct AccelSensor *pthisAccel, struct MagSensor *pthisMag, float flpftimesecs) |
| void | fInit_6DOF_GY_KALMAN (struct SV_6DOF_GY_KALMAN *pthisSV, struct AccelSensor *pthisAccel, struct GyroSensor *pthisGyro) |
| void | fInit_9DOF_GBY_KALMAN (struct SV_9DOF_GBY_KALMAN *pthisSV, struct AccelSensor *pthisAccel, struct MagSensor *pthisMag, struct GyroSensor *pthisGyro, struct MagCalibration *pthisMagCal) |
| void | fRun_1DOF_P_BASIC (struct SV_1DOF_P_BASIC *pthisSV, struct PressureSensor *pthisPressure) |
| void | fRun_3DOF_G_BASIC (struct SV_3DOF_G_BASIC *pthisSV, struct AccelSensor *pthisAccel) |
| void | fRun_3DOF_B_BASIC (struct SV_3DOF_B_BASIC *pthisSV, struct MagSensor *pthisMag) |
| void | fRun_3DOF_Y_BASIC (struct SV_3DOF_Y_BASIC *pthisSV, struct GyroSensor *pthisGyro) |
| void | fRun_6DOF_GB_BASIC (struct SV_6DOF_GB_BASIC *pthisSV, struct MagSensor *pthisMag, struct AccelSensor *pthisAccel) |
| void | fRun_6DOF_GY_KALMAN (struct SV_6DOF_GY_KALMAN *pthisSV, struct AccelSensor *pthisAccel, struct GyroSensor *pthisGyro) |
| void | fRun_9DOF_GBY_KALMAN (struct SV_9DOF_GBY_KALMAN *pthisSV, struct AccelSensor *pthisAccel, struct MagSensor *pthisMag, struct GyroSensor *pthisGyro, struct MagCalibration *pthisMagCal) |
This file can be used to "tune" the performance of specific algorithms within the sensor fusion library. It also defines the lower level function definitions for specific algorithms. Normally, the higher level hooks in sensor_fusion.h will be used, and those shown here will be left alone.
Definition in file fusion.h.
| #define FLPFSECS_1DOF_P_BASIC 1.5F |
Referenced by fRun_1DOF_P_BASIC().
| #define FLPFSECS_3DOF_B_BASIC 7.0F |
Referenced by fRun_3DOF_B_BASIC().
| #define FLPFSECS_3DOF_G_BASIC 1.0F |
Referenced by fRun_3DOF_G_BASIC().
| #define FLPFSECS_6DOF_GB_BASIC 7.0F |
Definition at line 57 of file fusion.h.
Referenced by fRun_6DOF_GB_BASIC().
| #define FMAX_6DOF_GY_BPL 7.0F |
Referenced by fInit_6DOF_GY_KALMAN().
| #define FMAX_9DOF_GBY_BPL 7.0F |
Referenced by fInit_9DOF_GBY_KALMAN(), and fRun_6DOF_GY_KALMAN().
| #define FMIN_6DOF_GY_BPL -7.0F |
minimum permissible power on gyro offsets (deg/s)
Definition at line 65 of file fusion.h.
Referenced by fInit_6DOF_GY_KALMAN().
| #define FMIN_9DOF_GBY_BPL -7.0F |
minimum permissible power on gyro offsets (deg/s)
Definition at line 77 of file fusion.h.
Referenced by fInit_9DOF_GBY_KALMAN(), and fRun_6DOF_GY_KALMAN().
| #define FQVB_9DOF_GBY_KALMAN 5E0 |
magnetometer sensor noise variance units uT^2 defining minimum deviation from geomagnetic sphere.
Definition at line 75 of file fusion.h.
Referenced by fRun_6DOF_GY_KALMAN().
| #define FQVG_6DOF_GY_KALMAN 1.2E-3 |
accelerometer sensor noise variance units g^2
Definition at line 63 of file fusion.h.
Referenced by fRun_6DOF_GY_KALMAN().
| #define FQVG_9DOF_GBY_KALMAN 1.2E-3 |
accelerometer sensor noise variance units g^2 defining minimum deviation from 1g sphere
Definition at line 74 of file fusion.h.
Referenced by fRun_6DOF_GY_KALMAN().
| #define FQVY_6DOF_GY_KALMAN 2E2 |
gyro sensor noise variance units (deg/s)^2
Definition at line 62 of file fusion.h.
Referenced by fInit_6DOF_GY_KALMAN().
| #define FQVY_9DOF_GBY_KALMAN 2E2 |
gyro sensor noise variance units (deg/s)^2
Definition at line 73 of file fusion.h.
Referenced by fInit_9DOF_GBY_KALMAN().
| #define FQWB_6DOF_GY_KALMAN 2E-2F |
gyro offset random walk units (deg/s)^2
Definition at line 64 of file fusion.h.
Referenced by fInit_6DOF_GY_KALMAN().
| #define FQWB_9DOF_GBY_KALMAN 2E-2F |
gyro offset random walk units (deg/s)^2
Definition at line 76 of file fusion.h.
Referenced by fInit_6DOF_GY_KALMAN(), and fInit_9DOF_GBY_KALMAN().
| void fFuseSensors | ( | struct SV_1DOF_P_BASIC * | pthisSV_1DOF_P_BASIC, |
| struct SV_3DOF_G_BASIC * | pthisSV_3DOF_G_BASIC, | ||
| struct SV_3DOF_B_BASIC * | pthisSV_3DOF_B_BASIC, | ||
| struct SV_3DOF_Y_BASIC * | pthisSV_3DOF_Y_BASIC, | ||
| struct SV_6DOF_GB_BASIC * | pthisSV_6DOF_GB_BASIC, | ||
| struct SV_6DOF_GY_KALMAN * | pthisSV_6DOF_GY_KALMAN, | ||
| struct SV_9DOF_GBY_KALMAN * | pthisSV_9DOF_GBY_KALMAN, | ||
| struct AccelSensor * | pthisAccel, | ||
| struct MagSensor * | pthisMag, | ||
| struct GyroSensor * | pthisGyro, | ||
| struct PressureSensor * | pthisPressure, | ||
| struct MagCalibration * | pthisMagCal | ||
| ) |
Definition at line 86 of file fusion.c.
Referenced by runFusion().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_1DOF_P_BASIC | ( | struct SV_1DOF_P_BASIC * | pthisSV, |
| struct PressureSensor * | pthisPressure, | ||
| float | flpftimesecs | ||
| ) |
Definition at line 172 of file fusion.c.
Referenced by fRun_1DOF_P_BASIC().
Here is the caller graph for this function:| void fInit_3DOF_B_BASIC | ( | struct SV_3DOF_B_BASIC * | pthisSV, |
| struct MagSensor * | pthisMag, | ||
| float | flpftimesecs | ||
| ) |
Definition at line 228 of file fusion.c.
Referenced by fRun_3DOF_B_BASIC().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_3DOF_G_BASIC | ( | struct SV_3DOF_G_BASIC * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| float | flpftimesecs | ||
| ) |
Definition at line 197 of file fusion.c.
Referenced by fRun_3DOF_G_BASIC().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_3DOF_Y_BASIC | ( | struct SV_3DOF_Y_BASIC * | pthisSV | ) |
Definition at line 259 of file fusion.c.
Referenced by fRun_3DOF_Y_BASIC().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_6DOF_GB_BASIC | ( | struct SV_6DOF_GB_BASIC * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| struct MagSensor * | pthisMag, | ||
| float | flpftimesecs | ||
| ) |
Definition at line 277 of file fusion.c.
Referenced by fRun_6DOF_GB_BASIC().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_6DOF_GY_KALMAN | ( | struct SV_6DOF_GY_KALMAN * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| struct GyroSensor * | pthisGyro | ||
| ) |
Definition at line 313 of file fusion.c.
Referenced by fRun_6DOF_GY_KALMAN().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInit_9DOF_GBY_KALMAN | ( | struct SV_9DOF_GBY_KALMAN * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| struct MagSensor * | pthisMag, | ||
| struct GyroSensor * | pthisGyro, | ||
| struct MagCalibration * | pthisMagCal | ||
| ) |
Definition at line 378 of file fusion.c.
Referenced by fRun_6DOF_GY_KALMAN().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInitializeFusion | ( | SensorFusionGlobals * | sfg | ) |
Definition at line 51 of file fusion.c.
Referenced by DecodeCommandBytes(), and initializeFusionEngine().
Here is the caller graph for this function:| void fRun_1DOF_P_BASIC | ( | struct SV_1DOF_P_BASIC * | pthisSV, |
| struct PressureSensor * | pthisPressure | ||
| ) |
Definition at line 447 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_3DOF_B_BASIC | ( | struct SV_3DOF_B_BASIC * | pthisSV, |
| struct MagSensor * | pthisMag | ||
| ) |
Definition at line 517 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_3DOF_G_BASIC | ( | struct SV_3DOF_G_BASIC * | pthisSV, |
| struct AccelSensor * | pthisAccel | ||
| ) |
Definition at line 467 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_3DOF_Y_BASIC | ( | struct SV_3DOF_Y_BASIC * | pthisSV, |
| struct GyroSensor * | pthisGyro | ||
| ) |
Definition at line 562 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_6DOF_GB_BASIC | ( | struct SV_6DOF_GB_BASIC * | pthisSV, |
| struct MagSensor * | pthisMag, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
Definition at line 610 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_6DOF_GY_KALMAN | ( | struct SV_6DOF_GY_KALMAN * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| struct GyroSensor * | pthisGyro | ||
| ) |
Definition at line 663 of file fusion.c.
Referenced by fFuseSensors().
Here is the call graph for this function:
Here is the caller graph for this function:| void fRun_9DOF_GBY_KALMAN | ( | struct SV_9DOF_GBY_KALMAN * | pthisSV, |
| struct AccelSensor * | pthisAccel, | ||
| struct MagSensor * | pthisMag, | ||
| struct GyroSensor * | pthisGyro, | ||
| struct MagCalibration * | pthisMagCal | ||
| ) |
Referenced by fFuseSensors(), and fRun_6DOF_GY_KALMAN().
Here is the caller graph for this function: